// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import axios from 'axios' // 1、在这里引入axios

//rem 计算， 有误差，未使用
// import remAndPhoneConfig from '../config/remConfig'
// remAndPhoneConfig()


import {
  AlertPlugin,
  ToastPlugin,
  LoadingPlugin
} from 'vux'

Vue.use(AlertPlugin)
Vue.use(ToastPlugin)
Vue.use(LoadingPlugin)


import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

//全局配置
import config from "./utils/config.js";
Vue.prototype.$config = config

//全局工具
import utils from "./utils/utils.js";
Vue.prototype.$utils = utils

Vue.prototype.DPR = window.devicePixelRatio



//引入註冊川辰混合開發框架底層全局方法
import GLOBAL from './utils/index.js'
GLOBAL.ccRequest.setAppId('zhishu') // 这是由后台分配的APPID识别号，接口调用都需要用到

//全局login方法
import loginFun from "./utils/cc-webapp/login.js";
Vue.prototype.LOGIN = loginFun


import {
  CONFIG
} from "@/api/apiConfig.js";
Vue.prototype.CONFIG = CONFIG


Vue.prototype.GLOBAL_ = GLOBAL


// import { Slider } from 'vant';
// Vue.use(Slider);


Vue.config.productionTip = false

/* eslint-disable no-new */
var vm = new Vue({
  el: '#app',
  router,
  components: {
    App
  },
  template: '<App/>'
})
